function formData(data) {
    let obj = {};
    let arr = data.serializeArray();
    arr.forEach(item => {
        obj[item.name] = item.value
    });
    return obj;
}